﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.Data.Linq;
using System.ComponentModel;
namespace PostIt
{
    //Task item schema  for the Linq to SQL for tasks table

    [Table]
    public class Tasks
    {
        [Column(IsPrimaryKey = true,
            IsDbGenerated = true,
            DbType = "INT NOT NULL Identity",
            CanBeNull = false,
            AutoSync = AutoSync.OnInsert)]
        public int TaskId { get; set; }

        [Column]
        public string Title { get; set; }

        [Column]
        public string tileText { get; set; }

        [Column]
        public string Detail { get; set; }

        [Column]
        public DateTime CreationDate { get; set; }
           
        [Column]
        public DateTime DueDate { get; set; }
        
        [Column]
        public string backColor { get; set; }
        [Column]
        public bool isDone { get; set; }

        [Column]
        public bool isPin { get; set; }

    }
}